import request from "@/utils/request";

export function listjdalPage(params = {}){
    return request.get(
      `/jdal/listjdalPage?pageNo=${params.pageNo}&pageSize=${params.pageSize}`
    );
};


//详情
export function findjdalById(id) {
  return request({
    url: `/jdal/findjdalById/${id}`,
    method: 'get',
  });
};

//上一篇
export function findjdalprevById(id) {
  return request({
    url: `/jdal/findjdalprevById/${id}`,
    method: 'get',
  });
};

//下一篇
export function findjdalnextById(id) {
  return request({
    url: `/jdal/findjdalnextById/${id}`,
    method: 'get',
  });
};

//查询所有经典案例
export function listjdal() {
  return request({
    url: `/jdal/findAllJdal`,
    method: 'get',
  });
}
//添加经典案列
export function addjdal(data){
  return request({
    url:`/jdal/addJdal`,
    method: 'post',
    data:data
  })
}
//修改经典案例
export function updatejdal(data){
  return request({
    url:`/jdal/updateJdal`,
    method: 'put',
    data:data
  })
}
